package com.whut.monitor.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Sandeepin
 * 传感器实体-对应数据库表
 */
@Entity
@Table(name = "t_sensor")
public class SensorEntity{
	
	private Integer id;
	// 传感器名称
	private String sensorName;
	// 传感器编号
	private String sensorNum;
	// 传感器类型，0：电类传感器;1：FBG温度;2:FBG应力
	private Integer sensorType;
	// 出厂日期
	private Date productDate;
	// 生产厂家
	private String company;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name="sensor_name")
	public String getSensorName() {
		return sensorName;
	}

	public void setSensorName(String sensorName) {
		this.sensorName = sensorName;
	}

	@Column(name="sensor_num")
	public String getSensorNum() {
		return sensorNum;
	}

	public void setSensorNum(String sensorNum) {
		this.sensorNum = sensorNum;
	}	
	
	@Column(name="sensor_type")
	public Integer getSensorType() {
		return sensorType;
	}

	public void setSensorType(Integer sensorType) {
		this.sensorType = sensorType;
	}
	
	@Column(name="product_date")
	public Date getProductDate() {
		return productDate;
	}

	public void setProductDate(Date productDate) {
		this.productDate = productDate;
	}
	
	@Column(name="company")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
}
	
	
	
	